<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" href="bind.css">
</head>
<body>
<div id="app">


  <ul>
    <li v-for="(item,index) in movies" :class="{'active':selected==index}"  @click="bander(index)"  :title="value">{{index}},{{item}}</li>
  </ul>
</div>
  <script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el:'#app',
    data:{
      message:"message",
      movies:['海王','进击的巨人','火影忍者'],
      selected:0
    },
    methods:{

      bander: function (obj) { this.selected = obj; },

  }

  })
</script>

</body>
</html>